/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(function() {
   $('.successbox').hide();//Hide the div
   $('#btnRegresar').click(function(){
       location.href = "ServletConsulta?metodo=pagina&a=inicio";
   });
   
});
function convertTokenToString( tokens ){
   
    var arr = Array();
    for(var k=0; k <  tokens.length;k++ ){
        arr[arr.length] = tokens[k].id;
    }
    return arr.join('|');
}
var oTable = null;

var hlr = 0;   // Reference to the currently highlighted row
var vgl_indexSelect = null;
function rowClick()
{
   if (hlr)
      $("td:first", hlr).parent().children().each(function(){$(this).removeClass('markrow');});
   hlr = this;
   $("td:first", this).parent().children().each(function(){$(this).addClass('markrow');});

   // You can pull the values out of the row here if required
   //alert(  hlr );
   //alert ( oTable.fnGetData(hlr)[0] );
   var a = $("td:first", this).text();
   var b = $("td:eq(1)", this).text();
   vgl_indexSelect = hlr ;
   //alert("One = "+a+", Two = "+b);
}
function pad(n, length){
   n = n.toString();
   while(n.length < length) n = "0" + n;
   return n;
}
